package com.yowosoft.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yowosoft.model.User;

@Controller
public class UserController {
   
	@RequestMapping(value="/",method=RequestMethod.GET)
	public String welcome(){
		return "index";
	}
	
	
	@RequestMapping(value="register.do", method=RequestMethod.POST)
	@ResponseBody
	public User register(User user){
		System.out.println("--------------"+user.toString());	
	  return user;
	}
}
